# class UserManager:
#     def __init__(self, *users):
#         self.users = []
#         for u in users:
#             self.users.append(u)
#
#
#     def __getitem__(self, item):
#         return self.users[item]
#
#
# u = UserManager("zhangshan", "lisi", "wangwu")
#
#
# def add(a, b):
#     try:
#         assert isinstance(a, (int, float)) and isinstance(b, (int, float))
#     except AssertionError:
#         raise TypeError("arguments must be either int or float")
#     return a + b



# add(34.5,"sdfsfsdf")


def get_data_2():
    yield 3,4

def get_data():
    yield 1
    yield from get_data_2() #== (yield 3,4)


for x in get_data():
    print(x)


